﻿using Battle.Net;
using NUnit.Framework;

namespace Aesha.wow.Api.Tests
{
    [TestFixture]
    public class ItemTests
    {
        public BattleNetConnection Connection { get; set; }

        [TestFixtureSetUp]
        public void Setup()
        {
            Connection = new BattleNetConnection(Host.Europe, Locale.en_GB)
                {
                    CacheConnectionString = Properties.Settings.Default.CacheConnectionString,
                    UseCache = true
                };
        }

        [Test]
        public void GetItem()
        {
            var item = Connection.Items.GetItem(19019);
            Assert.IsTrue(item.Id == 19019);
        }

        [Test]
        public void GetItemSet()
        {
            var itemSet = Connection.Items.GetItemSet(1060);
            Assert.IsTrue(itemSet.Id == 1060);
        }
    }
}
